package vn.vfriends.vbox.service;

import java.util.List;
import vn.vfriends.vbox.model.Role;
import vn.vfriends.vbox.model.RoleCode;

/**
 *
 * @author tuancn
 */
public interface RoleService {

    public List<Role> findAll();

    public Role create(Role role);

    public Role find(Integer id);

    public Role edit(Role role);

    public void remove(Role role);

    public Role findByCode(RoleCode code);
    
    public Role findByName(String name);
}
